package com.yami.shop.bean.param;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;

@Data
@Schema(description = "评论参数")
public class CommentParam {
    @Schema(description = "评论内容")
    @NotBlank(message = "内容不能为空")
    private String content;

    @Schema(description = "父评论ID")
    private Long parentId;

    private Long postId;
    private String userId; // 自动注入不暴露给前端
}
